package functions {	import functions.FunctionNode;	/**	 * @author pbalogh	 */	public class ModFunctionNode extends FunctionNode 	{		public function ModFunctionNode()		{			funcname = "mod";				functiontype = FUNCTION;		}				override public function getValue( args : XML, scope : Object ) : XML		{			trace("In mod.getValue()");			var returnXML : XML;						var returnValue : Number = 0;						var firstarg : Number = Evaluator.getLiteral(Evaluator.evaluate(args.children()[ 0 ], scope));						var secondarg : Number = Evaluator.getLiteral(Evaluator.evaluate(args.children()[ 1 ], scope));						trace("args are " + firstarg + ", " + secondarg);						returnValue = firstarg % secondarg;							trace("returnValue = " + returnValue);			returnXML = <numberliteral>{returnValue}</numberliteral>;						return returnXML;		}	}}